package org.example;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

@Controller
@Scope("prototype")
public class UserController {
    @Autowired
    UserService userService;
    public void save(User user){

        System.out.println("UserController.save");
        userService.save(user);
    }
}
